/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const resourceRouter = {
  path: '/resource',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Resources',
  meta: {
    title: 'Resources',
    icon: 'resource'
  },
  children: [
    {
      path: 'article/create',
      component: () => import('@/views/info/article/create'),
      name: 'CreateArticle',
      meta: { title: 'Create Article', icon: 'edit' },
      hidden: true
    },
    {
      path: 'article/edit/:id',
      component: () => import('@/views/info/article/edit'),
      name: 'EditArticle',
      meta: { title: 'Edit Article', activeMenu: '/resource/article/list' },
      hidden: true
    },
    {
      path: 'article/list',
      component: () => import('@/views/info/article/list'),
      name: 'ArticleList',
      meta: { title: 'Article List', icon: 'book' }
    },
    {
      path: 'article/content/:id',
      component: () => import('@/views/info/article/article-content'),
      name: 'ArticleContent',
      meta: { title: 'Article' },
      hidden: true
    },
    {
      path: 'fragment/list',
      component: () => import('@/views/info/fragment/list'),
      name: 'FragmentList',
      meta: { title: 'Fragment List', icon: 'fragment' }
    },
    {
      path: 'fragment/create',
      component: () => import('@/views/info/fragment/create'),
      name: 'CreateFragment',
      meta: { title: 'Create Fragment', activeMenu: '/resource/fragment/list' },
      hidden: true
    },
    {
      path: 'fragment/edit/:id',
      component: () => import('@/views/info/fragment/edit'),
      name: 'EditFragment',
      meta: { title: 'Edit Fragment', activeMenu: '/resource/fragment/list' },
      hidden: true
    },
    {
      path: 'interview-question/list',
      component: () => import('@/views/info/interview-question/list'),
      name: 'InterviewQuestionList',
      meta: { title: 'InterviewQuestions', icon: 'interview-question' }
    },
    {
      path: 'interview-question/create',
      component: () => import('@/views/info/interview-question/create'),
      name: 'CreateInterviewQuestion',
      meta: {
        title: 'Create InterviewQuestion',
        activeMenu: '/resource/interview-question/list'
      },
      hidden: true
    },
    {
      path: 'interview-question/edit/:id',
      component: () => import('@/views/info/interview-question/edit'),
      name: 'EditInterviewQuestion',
      meta: {
        title: 'Edit InterviewQuestion',
        activeMenu: '/resource/interview-question/list'
      },
      hidden: true
    },
    {
      path: 'interview-question/detail/:id',
      component: () => import('@/views/info/interview-question/detail'),
      name: 'InterviewQuestionDetail',
      meta: {
        title: 'InterviewQuestion Detail',
        activeMenu: '/resource/interview-question/list'
      },
      hidden: true
    },
    {
      path: 'bookmark/list',
      component: () => import('@/views/info/bookmark/list'),
      name: 'BookmarkList',
      meta: { title: 'Bookmarks', icon: 'bookmark' }
    },
    {
      path: 'bookmark/create',
      component: () => import('@/views/info/bookmark/create'),
      name: 'CreateBookmark',
      meta: {
        title: 'Create Bookmark',
        activeMenu: '/resource/bookmark/list'
      },
      hidden: true
    },
    {
      path: 'bookmark/edit/:id',
      component: () => import('@/views/info/bookmark/edit'),
      name: 'EditBookmark',
      meta: {
        title: 'Edit Bookmark',
        activeMenu: '/resource/bookmark/list'
      },
      hidden: true
    },
    {
      path: 'my-item/list',
      component: () => import('@/views/info/my-item/list'),
      name: 'MyItemList',
      meta: { title: 'MyItems', icon: 'item' }
    },
    {
      path: 'my-item/create',
      component: () => import('@/views/info/my-item/create'),
      name: 'CreateMyItem',
      meta: {
        title: 'Create MyItem',
        activeMenu: '/resource/my-item/list'
      },
      hidden: true
    },
    {
      path: 'my-item/edit/:id',
      component: () => import('@/views/info/my-item/edit'),
      name: 'EditMyItem',
      meta: {
        title: 'Edit MyItem',
        activeMenu: '/resource/my-item/list'
      },
      hidden: true
    }
  ]
}

export default resourceRouter
